<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<script type="text/javascript">
    function page(n, s) {
        $("#pageNo").val(n);
        $("#pageSize").val(s);
        $("#searchForm").submit();
        return false;
    }
</script>
<div class="panel-body">
    <section class="main-content col-lg-12" id="LeftDiv">
    <div class="table-responsive no-border">
        <div class="datatable-top">
            <div class="pull-left">
            <%--<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>--%>
                <%--<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>--%>
                <input id="btnSubmit" onclick="addSubProject('rigthCenterDiv','${applyId}','${ctx}/treatProjectItem/treatProjectItem/formTreat?type=0&applyId=${applyId}')" class="btn btn-primary" type="submit" value="添加"/>
                </div>
        </div>
            <table id="contentTable" class="table table-bordered table-striped mg-t datatable">
                <thead>
                <tr>
                    <th style="display:none">主键</th>
                    <%--<th>治疗类型</th>--%>
                    <th>治疗类别</th>
                    <th>治疗项目</th>
                    <th>执行科室</th>
                    <th>开单科室</th>
                    <th>数量</th>
                    <th>单价</th>
                    <th>总价</th>
                    <th>医生说明</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${list}" var="treatProjectItem">
                <tr>
                    <td style="display:none"> ${treatProjectItem.id}</td>
                    <%--<td> ${treatProjectItem.treatProjectId}</td>--%>
                    <td> ${fns:getDictLabels(treatProjectItem.orderClass,'BILL_ITEM_CLASS_DICT','')}</td>
                    <td> ${treatProjectItem.orderText}</td>
                    <td> ${fns:getDeptName(treatProjectItem.performedBy,'')}</td>
                    <td> ${fns:getDeptName(treatProjectItem.newDept,'')}</td>
                    <td> ${treatProjectItem.amount}</td>
                    <td> ${treatProjectItem.price}</td>
                    <td> ${treatProjectItem.sumPrice}</td>
                    <td> ${treatProjectItem.doctInstruction}</td>
                    <td>
                        <a href="#"
                           onclick="addSubProject('rigthCenterDiv','${applyId}','${ctx}/treatProjectItem/treatProjectItem/formTreat?type=0&applyId=${applyId}&id=${treatProjectItem.id}');"
                           class="btn btn-success btn-xs">修改</a>
                        <a href="#" class="applyBt btn btn-danger btn-xs"
                           onclick="confirmExtend('确认要删除该吗？',function(){delLoad('treatProjectItem','${ctx}/treatProjectItem/treatProjectItem/delete?id=${treatProjectItem.id}','${ctx}/treatProjectItem/treatProjectItem/indexTreat?type=0&id=${applyId}')})">删除</a>
                    </td>
                </tr>
                </c:forEach>

            </table>
            <div class="pagination">${page}</div>

    </div>
        </section>
</div>